package com.sh.personnel.vo.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 菜单树
 * @author 林思浩
 * @date 2020/03/13 14:36
 */
@Data
@Accessors(chain = true)
public class MenuTreeDto implements Serializable {

    @JsonIgnore
    private Integer id;
    private String path;
    private String name;
    private String component;
    private MetaDto meta;

    @JsonIgnore
    private Integer parentId;

    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private List<MenuTreeDto> children = new ArrayList<>();

}
